<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::group(['middleware' => ['web'], 'namespace' => 'Web'], function () {

    Route::get('/', 'IndexController@index');

    Route::get('/about', 'IndexController@about');

    Route::get('/hot', 'IndexController@hot');

    Route::get('/juesai', 'IndexController@juesai');

    Route::get('/finals', 'IndexController@finals');


    Route::get('/baoming', 'IndexController@getBaoming');

    Route::post('/action/baoming', 'IndexController@postBaoming');

//    singer
    Route::get('/singer/{id}', 'IndexController@singer');

    Route::get('/action/success', 'IndexController@getSuccess');

});


Route::group(['prefix' => 'mobile', 'middleware' => ['web'], 'namespace' => 'H5'], function () {

//    Route::resource('/', 'IndexController@index');

    Route::get('/', 'IndexController@index');
    Route::get('/about', 'IndexController@about');

    Route::get('/hot', 'IndexController@hot');

    Route::get('/hot/detail/{id}', 'IndexController@getDetail');
    Route::get('/hotdetail/{id}', 'IndexController@getHotdetail');

    Route::get('/juesai', 'IndexController@juesai');

    Route::get('/finals', 'IndexController@finals');

    Route::get('/baoming', 'IndexController@getBaoming');

    Route::get('/action/success', 'IndexController@getSuccess');

    Route::get('/clause', 'IndexController@clause');


});


Route::group(['prefix' => 'xxjh', 'middleware' => ['web'], 'namespace' => 'Xxjh'], function () {


    Route::post('/post/signup', 'WebController@postSignup');

    Route::get('/', 'WebController@index');

    Route::group(['prefix' => 'mobile', 'middleware' => ['web']], function () {
        Route::get('/', 'MobileController@index');
        Route::get('/about', 'MobileController@about');
        Route::get('/signup', 'MobileController@signup');

        Route::get('/clause', 'MobileController@clause');
    });



});